<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<meta charset="UTF-8">
	<title>我的团队</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no,email=no,adress=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />  
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="{THEME_PATH}styles/swiper.min.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/reset.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/common.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/style.css">
	<script src="{THEME_PATH}js/jquery-1.8.3.min.js"></script>
	<script src="{THEME_PATH}js/swiper.min.js"></script>
</head>
<body>
	<!-- S header -->
	<header>
		<a href="/index.php?m=user&c=home&a=index" class="headerL iconfont">&#xe69f;</a>
		<h1>我的团队</h1>
	</header>
	<!-- E header -->
	<!-- 横向菜单 -->
	<ul class="zsContMenu clearfix">
		<li class="on"><a href="javascript:;">团队信息</a></li>
		<li><a href="javascript:;">团队收益</a></li>
	</ul>
	<!--切换内容-->
	<div class="zsCont">
	    <!--标签1 对应展示 内容-->
	    <div class="item">
	        <ul>
				
        		
				
			
				
        		<li class="team-item">
        			<div class="team-head">
        				<div>一级推广</div>
        				<i class="team-icon"></i>
        			</div>
        			<dl class="team-body">
					<?php if(count($one_list != 0)) :?>
					<?php foreach($one_list as $key => $value) : ?>	
						<dd class="flex flex-pack-justify">
								<span><?php echo $value['real_name']; ?></span>
								<span><?php echo $value['time']; ?></span>
						</dd>
					<? endforeach ?>
					<?php else : ?>	
					<dd class="flex flex-pack-justify">
					</dd>
					<?php endif ?>	
	        			
	        			
        			</dl>
        		</li>
			
			
        		<li class="team-item">
        			<div class="team-head">
        				<div>二级推广</div>
        				<i class="team-icon"></i>
        			</div>
        			<dl class="team-body">
					<?php if(count($two_list != 0)) :?>
					<?php foreach($two_list as $key => $value) : ?>	
						<dd class="flex flex-pack-justify">
								<span><?php echo $value['real_name']; ?></span>
								<span><?php echo $value['time']; ?></span>
						</dd>
					<? endforeach ?>
					<?php else : ?>	
					<dd class="flex flex-pack-justify">
					</dd>
					<?php endif ?>	
	        			
	        			
        			</dl>
        		</li>
			
		
        		<li class="team-item">
        			<div class="team-head">
        				<div>三级推广</div>
        				<i class="team-icon"></i>
        			</div>
        			<dl class="team-body">
					<?php if(count($three_list != 0)) :?>
					<?php foreach($three_list as $key => $value) : ?>	
						<dd class="flex flex-pack-justify">
								<span><?php echo $value['real_name']; ?></span>
								<span><?php echo $value['time']; ?></span>
						</dd>
					<? endforeach ?>
					<?php else : ?>	
					<dd class="flex flex-pack-justify">
					</dd>
					<?php endif ?>	
	        			
	        			
        			</dl>
        		</li>

        		  
        	</ul>
	    </div>
	    <!--标签2 对应展示内容-->
	    <div class="item hide">
	    	<ul class="team-earnings">
	    		<li class="flex flex-pack-justify">
		    		<div>推广位置</div>
		    		<div>投注分红</div>
	    		</li>
	    		<li class="flex flex-pack-justify">
		    		<div>一级推广</div>
		    		<div><?php echo $one_money; ?>GF</div>
	    		</li>
	    		<li class="flex flex-pack-justify">
		    		<div>二级推广</div>
		    		<div><?php echo $two_moeny; ?>GF</div>
	    		</li>
	    		<li class="flex flex-pack-justify">
		    		<div>三级级推广</div>
		    		<div><?php echo $three_money; ?>GF</div>
	    		</li>
	    	</ul>
	    </div>
	</div>

	

	<script>
		function tab(menus, conts) {
		    $(menus).click(function() {
		        var index = $(this).index();
                $(this).addClass("on").siblings().removeClass("on");
            	$(conts).eq(index).removeClass("hide").siblings().addClass("hide");
		    })
		}
		tab(".zsContMenu li", ".zsCont .item")
	</script>
	<script>
		$(function(){
			$(".team-item").on("click",function(){
				$(this).toggleClass("open").siblings("li").removeClass("open");
			});
		})
	</script>
</body>
</html>